using System;
using System.Collections.Generic;
using System.Text;

namespace HF.WorkFlow.Engine
{
    public class WorkFlowEventArgs : EventArgs
    {
        public readonly string WorkFlowId = "";
        public readonly string WorkFlowInstanceId = "";
        public readonly string WorkTaskId = "";
        public readonly string WorkTaskInstanceId = "";
        public string ResultMsg = "";
        public WorkFlowEventArgs(WorkFlowRuntime workFlowRuntime)
        {
            if (workFlowRuntime == null) return;
            this.WorkFlowId = workFlowRuntime.WorkFlowId;
            this.WorkFlowInstanceId = workFlowRuntime.WorkFlowInstanceId;
            this.WorkTaskId = workFlowRuntime.WorkTaskId;
            this.WorkTaskInstanceId = workFlowRuntime.WorkTaskInstanceId;
        }
    }
}
